-- probability_no_consume
-- create by shuzy
-- 使用陷阱概率不消耗弹药

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    -- 释放技能时触发
    trigger = function(who, prop, arg)
        -- 概率触发
        if DungeonM.getRandSeed("probability_no_consume") % 1000 <= tonumber(prop[3]) then
            return true;
        else
            return false;
        end
    end,

    record = function(target, prop, path)
        return false;
    end
};